import {
	$http
} from '@escook/request-miniprogram'
wx.$http = $http
uni.$http = $http
/*设置访问路径*/
$http.baseUrl = "http://"

uni.$showSucc = function(title) {
		uni.showToast({
			title: title,
			duration: 1500,
			icon: 'success'
		})
	},
	uni.$showMsg = function(title) {
		uni.showToast({
			title: title,
			duration: 1500,
			icon: 'none'
		})
	},
	uni.$showErr = function(title) {
		uni.showToast({
			title: title,
			duration: 1500,
			icon: 'error'
		})
	}
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
import cuCustom from './colorui/components/cu-custom.vue'
Vue.component('cu-custom', cuCustom)

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
